function pcolor_set_ticks(xrange,yrange,xlbls,ylbls)

if (exist('xlbls','var')  || isempty(xlbls))&& isempty(xrange)
xrange=1:length(xlbls);
end
if (exist('ylbls','var') || isempty(ylbls))&& isempty(yrange)
yrange=1:length(ylbls);
end
    
set(gca,'XTick',0.5+xrange);
if ~exist('xlbls','var') || isempty(xlbls)
    ss=cell(1,length(xrange));
    for i=1:length(xrange)
        ss{i}=num2str(xrange(i));
    end

    set(gca,'XTickLabel',ss);
else
    set(gca,'XTickLabel',xlbls);
end


set(gca,'YTick',0.5+yrange);

if ~exist('ylbls','var') || isempty(ylbls)

    ss=cell(1,length(yrange));
    for i=1:length(yrange)
        ss{i}=num2str(yrange(i));
    end

    set(gca,'YTickLabel',ss);
else
    set(gca,'YTickLabel',ylbls);    
end